package com.ruibang.glass.produce.domain.resp;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.alibaba.fastjson.annotation.JSONField;
import com.teaming.cloud.framework2.common.tools.LocalDateTimeStringConverter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-05-15  10:28
 * @Description: TODO::热端单板缺陷趋势图
 * @Version: 1.0
 */
@Data
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
public class HotSingleBoardDefectSummary {
    @ApiModelProperty("玻璃ID")
    @ColumnWidth(18)
    @ExcelProperty(value = {"玻璃ID"}, index = 0)
    private String glassId;

    @ApiModelProperty("采集时间")
    @ColumnWidth(18)
    @ExcelProperty(value = {"开始时间"}, index = 1,converter = LocalDateTimeStringConverter.class)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty("气泡数量")
    @ColumnWidth(10)
    @ExcelProperty(value = {"气泡数量"}, index = 2)
    private int bubbleTotalNum;
    @ApiModelProperty("结石数量")
    @ColumnWidth(10)
    @ExcelProperty(value = {"结石数量"}, index = 3)
    private int stoneTotalNum;
    @ApiModelProperty("铂金数量")
    @ColumnWidth(10)
    @ExcelProperty(value = {"铂金数量"}, index = 4)
    private int ptTotalNum;

    @ApiModelProperty("总板数(汇总)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"总板数"}, index = 5)
    private int totalBoardNum;


    @ApiModelProperty("缺陷数量(汇总)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"缺陷数量"}, index = 6)
    private int defectNum;


    @ApiModelProperty("0-150(气泡)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"0-150(气泡)"}, index = 7)
    private int bubbleNum1;
    @ApiModelProperty("150-300(气泡)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"150-300(气泡)"}, index = 8)
    private int bubbleNum2;
    @ApiModelProperty("300-500(气泡)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"300-500(气泡)"}, index = 9)
    private int bubbleNum3;
    @ApiModelProperty("500-1000(气泡)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"500-1000(气泡)"}, index = 10)
    private int bubbleNum4;
    @ApiModelProperty("1000以上(气泡)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"1000以上(气泡)"}, index = 11)
    private int bubbleNum5;


    @ApiModelProperty("0-150(结石)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"0-150(结石)"}, index = 12)
    private int stoneNum1;
    @ApiModelProperty("150-300(结石)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"150-300(结石)"}, index = 13)
    private int stoneNum2;
    @ApiModelProperty("300-500(结石)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"300-500(结石)"}, index = 14)
    private int stoneNum3;
    @ApiModelProperty("500-1000(结石)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"500-1000(结石)"}, index = 15)
    private int stoneNum4;
    @ApiModelProperty("1000以上(结石)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"1000以上(结石)"}, index = 16)
    private int stoneNum5;


    @ApiModelProperty("0-150(铂金)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"0-150(铂金)"}, index = 17)
    private int ptNum1;
    @ApiModelProperty("150-300(铂金)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"150-300(铂金)"}, index = 18)
    private int ptNum2;
    @ApiModelProperty("300-500(铂金)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"300-500(铂金)"}, index = 19)
    private int ptNum3;
    @ApiModelProperty("500-1000(铂金)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"500-1000(铂金)"}, index = 20)
    private int ptNum4;
    @ApiModelProperty("1000以上(铂金)")
    @ColumnWidth(10)
    @ExcelProperty(value = {"1000以上(铂金)"}, index = 21)
    private int ptNum5;


}
